
public class FinalDemo {
	final int index ;//一旦赋值，则不能够修改
	public FinalDemo(int index){
		this.index = index;
	}
	public static void main(String[] args) {
		System.out.println(new FinalDemo(3).index);
		
	}
}
